<?php
/**
 * Created by PhpStorm.
 * User: mr.hao
 * Date: 2018/8/15
 * Time: 15:57
 */

namespace App\Atransform;


use League\Fractal\TransformerAbstract;
use Modules\Shop\Entities\Category;

class CategoryTransform extends TransformerAbstract
{
    public function transform(Category $category)
    {
        return [
          'id'=>$category['id'],
          'shopname'=>$category['shopname'],
        ];
    }
}